package com.example.common.di;

import android.app.Activity;

import androidx.fragment.app.FragmentActivity;

import com.tbruyelle.rxpermissions3.RxPermissions;

import dagger.Module;
import dagger.Provides;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.ActivityComponent;

/**
 * 诸事皆宜，加油！！！
 *
 * @author hermit
 * @date 2021/7/4 4:35
 */
@InstallIn(ActivityComponent.class)
@Module
public class ActivityModule {


    @Provides
    RxPermissions provideRxPermission(Activity activity) {
        return new RxPermissions((FragmentActivity) activity);
    }
}
